home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMWindow2.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  2KB  |  95 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMWindow2.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMWindow2_h__
  6. #define __gen_nsIDOMWindow2_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMWindow_h__
  10. #include "nsIDOMWindow.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMWindow2 */
  19. #define NS_IDOMWINDOW2_IID_STR "65455132-b96a-40ec-adea-52fa22b1028c"
  20.  
  21. #define NS_IDOMWINDOW2_IID \
  22.   {0x65455132, 0xb96a, 0x40ec, \
  23.     { 0xad, 0xea, 0x52, 0xfa, 0x22, 0xb1, 0x02, 0x8c }}
  24.  
  25. class NS_NO_VTABLE nsIDOMWindow2 : public nsIDOMWindow {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMWINDOW2_IID)
  29.  
  30.   /**
  31.    * Get the window root for this window. This is useful for hooking
  32.    * up event listeners to this window and every other window nested
  33.    * in the window root.
  34.    */
  35.   /* [noscript] readonly attribute nsIDOMEventTarget windowRoot; */
  36.   NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) = 0;
  37.  
  38. };
  39.  
  40. /* Use this macro when declaring classes that implement this interface. */
  41. #define NS_DECL_NSIDOMWINDOW2 \
  42.   NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot); 
  43.  
  44. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  45. #define NS_FORWARD_NSIDOMWINDOW2(_to) \
  46.   NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) { return _to GetWindowRoot(aWindowRoot); } 
  47.  
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  49. #define NS_FORWARD_SAFE_NSIDOMWINDOW2(_to) \
  50.   NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowRoot(aWindowRoot); } 
  51.  
  52. #if 0
  53. /* Use the code below as a template for the implementation class for this interface. */
  54.  
  55. /* Header file */
  56. class nsDOMWindow2 : public nsIDOMWindow2
  57. {
  58. public:
  59.   NS_DECL_ISUPPORTS
  60.   NS_DECL_NSIDOMWINDOW2
  61.  
  62.   nsDOMWindow2();
  63.  
  64. private:
  65.   ~nsDOMWindow2();
  66.  
  67. protected:
  68.   /* additional members */
  69. };
  70.  
  71. /* Implementation file */
  72. NS_IMPL_ISUPPORTS1(nsDOMWindow2, nsIDOMWindow2)
  73.  
  74. nsDOMWindow2::nsDOMWindow2()
  75. {
  76.   /* member initializers and constructor code */
  77. }
  78.  
  79. nsDOMWindow2::~nsDOMWindow2()
  80. {
  81.   /* destructor code */
  82. }
  83.  
  84. /* [noscript] readonly attribute nsIDOMEventTarget windowRoot; */
  85. NS_IMETHODIMP nsDOMWindow2::GetWindowRoot(nsIDOMEventTarget * *aWindowRoot)
  86. {
  87.     return NS_ERROR_NOT_IMPLEMENTED;
  88. }
  89.  
  90. /* End of implementation class template. */
  91. #endif
  92.  
  93.  
  94. #endif /* __gen_nsIDOMWindow2_h__ */
  95.